package com.example.singing.model;

import java.io.Serializable;
import java.util.List;

/**
 * 评分模型类
 */
public class Score implements Serializable {
    private String id;
    private String competitionId;
    private String teamId;
    private List<Double> judgeScores;
    private double finalScore;

    public Score(String id, String competitionId, String teamId, List<Double> judgeScores, double finalScore) {
        this.id = id;
        this.competitionId = competitionId;
        this.teamId = teamId;
        this.judgeScores = judgeScores;
        this.finalScore = finalScore;
    }

    // Getters and Setters
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }

    public String getCompetitionId() { return competitionId; }
    public void setCompetitionId(String competitionId) { this.competitionId = competitionId; }

    public String getTeamId() { return teamId; }
    public void setTeamId(String teamId) { this.teamId = teamId; }

    public List<Double> getJudgeScores() { return judgeScores; }
    public void setJudgeScores(List<Double> judgeScores) { this.judgeScores = judgeScores; }

    public double getFinalScore() { return finalScore; }
    public void setFinalScore(double finalScore) { this.finalScore = finalScore; }

    @Override
    public String toString() {
        return "评分ID: " + id + ", 最终得分: " + finalScore;
    }
}